<template>
	<view>
		<!-- tabs -->
		<doctorList :list="messageList" @click="goHandel"></doctorList>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messageList: [],
				status: "nomore",
				form: {
					"pageNum": 1,
					"pageSize": 5,
					"search": "",
					"searchType": null
				}
			}
		},
		methods: {
			goHandel() {

			},
			async getHospital() {
				let re = await this.$API.messageApi.payDoctor()
				this.messageList = re
			},
		},
		onShow() {
			this.getHospital()
		},
		// 触底加载
		onReachBottom() {
			this.status = 'loading'
			setTimeout(() => {
				this.status = 'nomore'
				this.form.pageNum++
				this.getDoctorPage()
			}, 500)
		},
	}
</script>

<style scoped>

</style>